#ifndef LINK_H
#define LINK_H

#include "Item.h"
namespace AbsFactory 
{
    /**
     * @brief Link is a abstract component of Page, 
     *        an instantiation of Item
     */
    class Link : public Item
    {
    protected:
        std::string url;
    public:
        // constructor
        Link(std::string caption, std::string url) 
            : Item(caption), url(url){}

        std::string makeHTML() const = 0;
    };
};

#endif